// pages/detail/detail.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    res:""
  },
  onLoad: function (options) {
    let {id} = options
    wx.request({
      url: `http://192.168.4.18:3000/album?id=${id}`,
      data: {},
      header: {'content-type':'application/json'},
      method: 'GET',
      dataType: 'json',
      responseType: 'text',
      success: (result)=>{
        // console.log(result);
       let {description} = result.data.album;
       this.setData({
         res:description
       })
      }
    });
  }
})